package com.yin.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author yp
 * @since 2025-01-14
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Personnel implements Serializable {
    
    private static final long serialVersionUID = 1L;
    
    /**
     * 员工编号
     */
    @TableId(value = "pid", type = IdType.AUTO)
    private Integer pid;
    
    /**
     * 员工姓名
     */
    private String pname;
    
    /**
     * 性别
     */
    private String sex;
    
    /**
     * 年龄
     */
    private Integer age;
    
    /**
     * 地址
     */
    private String addr;
    
    /**
     * 宿舍
     */
    private Integer rid;
    
    @TableField(exist = false)
    private String raddr;
    
    @TableLogic
    private Integer deleted;
    
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    
    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
